<?php
	header('Content-Type: text/css');

	if (!empty($_GET['f'])) {
		$files = explode(',', $_GET['f']);
		$ret = Util::compose_files($files, TOP_DIR.'/www/css/');
		$ret = trim(preg_replace('/[\n\t]+/m', '', $ret));

		if (!empty($_SERVER['HTTP_ACCEPT_ENCODING']) && strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false) {
			ob_start('ob_gzhandler');
			echo $ret;
		} else {
			echo $ret;
		}
	}

	exit;
?>